package com.example.servicemodule1;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @MapperScan: 开启mapper注解扫描
 * @EnableDiscoveryClient: 开启注册与发现
 */
@EnableDiscoveryClient
@MapperScan("com.example.servicemodule1.dao")
@SpringBootApplication
public class ServiceModule1Application {

    public static void main(String[] args) {
        SpringApplication.run(ServiceModule1Application.class, args);
    }

}
